package com.scalar.chiptrack.operations.dataentry.forms;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.utils.AutoGrowingArrayList;
import com.scalar.chiptrack.operations.dataentry.InTransitLots;

import java.util.ArrayList;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * User: ChandraSekhar
 * Date: Jan 4, 2008
 * Time: 4:00:37 PM
 */
public class DieBankReceiveForm extends ChipTrackActionForm
{
    private int processStepId = -1;
    private int locationId = -1;
    private int lotId = -1;
    
    ArrayList transitLotsList = new AutoGrowingArrayList(InTransitLots.class);
    ArrayList confirmTransitLotsList = new AutoGrowingArrayList(InTransitLots.class);

    public int getProcessStepId() {
        return processStepId;
    }

    public void setProcessStepId(int processStepId) {
        this.processStepId = processStepId;
    }

    public int getLocationId() {
        return locationId;
    }

    public void setLocationId(int locationId) {
        this.locationId = locationId;
    }

    public int getLotId() {
        return lotId;
    }

    public void setLotId(int lotId) {
        this.lotId = lotId;
    }

    public ArrayList getTransitLotsList() {
        return transitLotsList;
    }

    public void setTransitLotsList(ArrayList transitLotsList) {
        this.transitLotsList = transitLotsList;
    }

    public ArrayList getConfirmTransitLotsList() {
        return confirmTransitLotsList;
    }

    public void setConfirmTransitLotsList(ArrayList confirmTransitLotsList) {
        this.confirmTransitLotsList = confirmTransitLotsList;
    }

    public void reset( ActionMapping mapping, HttpServletRequest request )
	{
        if ( transitLotsList != null )
        {
            int listSize = transitLotsList.size();
            for (int i = 0; i < listSize; i++)
            {
                InTransitLots transitLots = (InTransitLots) transitLotsList.get(i);
                transitLots.setChecked( false );
            }
        }
    }
}
